package db;

/**
 * Class Religion saves a single pair of data conaining the name and the
 * percentage performing the religion.
 * 
 * @author markus
 * 
 */
public class Religion {

	private String name;
	private double percent;

	/**
	 * Constructor needs name and percentage of followers.
	 * 
	 * @param name
	 *            String
	 * @param percent
	 *            Double
	 */
	public Religion(String name, double percent) {
		this.name = name;
		this.percent = percent;
	}

	/**
	 * Constructor if no percentage is given.
	 * 
	 * @param name
	 *            String
	 */
	public Religion(String name) {
		this.name = name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param percent
	 *            the percent to set
	 */
	public void setPercent(double percent) {
		this.percent = percent;
	}

	/**
	 * @return the percent
	 */
	public double getPercent() {
		return percent;
	}
}